package com.jiawa.train.business.service;

import com.jiawa.train.business.domain.TrainCarriage;
import com.jiawa.train.business.req.TrainCarriageQueryReq;
import com.jiawa.train.business.req.TrainCarriageSaveReq;
import com.jiawa.train.business.resp.TrainCarriageQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.List;

/**
 * @author zzl
 * @version 1.0
 */
public interface TrainCarriageService {
    /**
     * 新增一条高铁车厢信息
     * @param req
     */
    void save(TrainCarriageSaveReq req);

    /**
     * 分页查询高铁车厢信息
     * @param req
     * @return
     */
    PageResp<TrainCarriageQueryResp> queryList(TrainCarriageQueryReq req);

    /**
     * 根据id删除高铁车厢信息
     * @param id
     */
    void delete(Long id);

    /**
     * 根据高铁车次查询高铁高铁车厢信息
     * @param trainCode
     * @return
     */
    List<TrainCarriage> selectByTrainCode(String trainCode);
}
